<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>表白墙</title>
</head>
<body>
    <form action="messageWall" method="post">
        谁：<input type="text" name="from">
        对谁：<input type="text" name="to">
        说什么：<input type="text" name="message">
        <input type="submit" value="提交">
    </form>
    <div th:each="message : ${messages}">
        <span th:text="${message.from}"></span>
        <span>对</span>
        <span th:text="${message.to}"></span>
        <span>说:</span>
        <span th:text="${message.message}"></span>
    </div>
</body>
</html>